package com.taobao.txc.resourcemanager.e;

import com.taobao.txc.common.LoggerInit;
import com.taobao.txc.common.LoggerWrap;
import com.taobao.txc.common.b.b;
import com.taobao.txc.parser.struct.TxcTable;
import java.sql.SQLException;

public abstract class a
  implements com.taobao.txc.resourcemanager.e.a.a
{
  private static final LoggerWrap a = LoggerInit.logger;
  private final com.taobao.txc.parser.struct.c b;
  
  public a(com.taobao.txc.parser.struct.c paramc)
  {
    this.b = paramc;
  }
  
  public static com.taobao.txc.resourcemanager.e.a.a a(com.taobao.txc.parser.struct.c paramc)
  {
    Object localObject = null;
    switch (b.a[paramc.h().ordinal()])
    {
    case 1: 
      localObject = new c(paramc);
      break;
    case 2: 
      localObject = new e(paramc);
      break;
    case 3: 
      localObject = new f(paramc);
      break;
    case 4: 
      localObject = new d(paramc);
      break;
    default: 
      String str = "sqltype error:" + paramc.h();
      a.error(b.C.bd, str);
      throw new SQLException(str);
    }
    return localObject;
  }
  
  public com.taobao.txc.parser.struct.c a()
  {
    return this.b;
  }
  
  public TxcTable b()
  {
    return this.b.c();
  }
  
  public TxcTable c()
  {
    return this.b.e();
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.resourcemanager.e.a
 * JD-Core Version:    0.7.0.1
 */